package com.process.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wang on 15-3-10.
 */
@Controller
public class Demo {
    private Logger logger= Logger.getLogger(Demo.class);

    @RequestMapping(value = "index.do")
    public ModelAndView index(){
        logger.info("hello world");
        Map<String,String> para=new HashMap<String,String >();
        para.put("name","wanglei");
        return new ModelAndView("helloworld",para);
    }
}
